package com.goblin.model.film.po;

import java.util.Date;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.ConstraintMode;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ForeignKey;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.goblin.model.base.BaseEntity;
import lombok.Data;

@Data
@Table(name = "t_test_film_film")
@Entity
public class Film extends BaseEntity {

	private static final long serialVersionUID = 6474136815751334425L;

	@Column(name = "film_name", columnDefinition = "varchar(255) COMMENT '电影名称'")
	private String filmName;

	@Column(name = "directer", nullable = false, columnDefinition = " varchar(255) COMMENT '导演'")
	private String directer;

	@Column(name = "title", columnDefinition = " varchar(255) COMMENT '标题'")
	private String title;

	@Column(name = "actors", columnDefinition = " text COMMENT '演员'")
	private String actors;

	@Column(name = "country", columnDefinition = " varchar(255) COMMENT '制片国家/地区'")
	private String country;

	@Column(name = "lan", columnDefinition = "varchar(255) COMMENT '语言'")
	private String lan;

	@Column(name = "date", columnDefinition = " datetime COMMENT '上映日期'")
	private Date date;

	@Column(name = "time", columnDefinition = " varchar(255) COMMENT '134分钟'")
	private String time;

	@Column(name = "remark", columnDefinition = " varchar(255) COMMENT '剧情简介'")
	private String remark;

	@Column(name = "post", columnDefinition = " varchar(255) COMMENT '电影海报'")
	private String post;

	@Column(name = "pics", columnDefinition = " varchar(255) COMMENT '剧照'")
	private String pics;

	@Column(name = "grade", columnDefinition = " varchar(255) COMMENT '豆瓣评分'")
	private String grade;

	@Column(name = "url", columnDefinition = " varchar(255) COMMENT '豆瓣原址'")
	private String url;

	@Column(name = "type", columnDefinition = " varchar(255) COMMENT '电影类型'")
	private String type;

}
